package com.banciyuan.bcywebview.base.service;

import android.app.IntentService;
import android.content.Intent;

import com.banciyuan.bcywebview.utils.sp.SPConstant;
import com.banciyuan.bcywebview.utils.sp.SPHelper;

/**
 * Created by squall on 2015/10/27.
 */
public class CleanService extends IntentService {

    public CleanService() {
        super("CleanService");
    }

    public CleanService(String name) {
        super(name);
    }

    @Override
    protected void onHandleIntent(Intent intent) {
        SPHelper.putString(this, SPConstant.SPNAME_INITBACKURL, SPConstant.URL, "");
        SPHelper.putInt(this, SPConstant.SPNAME_INITBACKGROUND, SPConstant.VERSION, 0);

        SPHelper.putBoolean(this, SPConstant.SPNAME_CLEANTASK, SPConstant.CLEAR, true);
    }

    @Override
    public void onStart(Intent intent, int startId) {
        super.onStart(intent, startId);
    }
}
